package com.yunji.aggregate.model.vo.stock;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.yunji.common.annotation.Excel;
import com.yunji.common.base.BaseDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.storage.vo
 * @Title: AllocateTicketVO
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-08-21 15:05:07      V1.0        HuaAo       新建类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AllocateTicketStatisticsVO extends BaseDTO {

    @ApiModelProperty("调拨ID")
    private Long allocateId;

    @ApiModelProperty("调拨单号")
    @Excel(name = "调拨单号", width = 15)
    private String allocateCode;

    @ApiModelProperty("所属单位ID")
    private Long belongId;

    @ApiModelProperty("调出单位ID")
    private Long outBelongId;

    @ApiModelProperty("调入单位ID")
    private Long intoBelongId;

    @ApiModelProperty("调拨状态 0-草稿 1-待出库 2-待收货 3-已完成 4-已取消 5-作废")
    @Excel(name = "调拨状态 0-草稿 1-待出库 2-待收货 3-已完成 4-已取消 5-作废", width = 15)
    private Integer allocateStatus;

    @ApiModelProperty("调拨备注")
    @Excel(name = "调拨备注", width = 15)
    private String remark;

    @ApiModelProperty("提交时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "提交时间", width = 15)
    private Date applyTime;

    @ApiModelProperty("删除状态 0-未删除 1-已删除")
    private Integer delFlag;

    @ApiModelProperty("调拨总数")
    @Excel(name = "调拨总数", width = 15)
    private BigDecimal allocateAmount;

//    @ApiModelProperty("调拨详情")
//    private List<AllocateInfo> infoList;

    @ApiModelProperty("草稿(0-存在 1-不存在)")
    private Integer draftStatus;

    @ApiModelProperty("所属单位名称")
    @Excel(name = "所属单位名称", width = 15)
    private String belongName;

    @ApiModelProperty("父级所属单位ID")
    private Long parentId;

    @ApiModelProperty("出库单位名称")
    @Excel(name = "出库单位名称", width = 15)
    private String outBelongName;

    @ApiModelProperty("入库单位名称")
    @Excel(name = "入库单位名称", width = 15)
    private String intoBelongName;

}